<?php
namespace Admin\Controller;
use Think\Controller;
class IndexController extends Controller {
    public function index(){
        $pd = "概述";
        $this->assign('pd', $pd);
        $pt = "没有";
        $this->assign('pt', $pt);
        $text = $_SERVER['HTTP_USER_AGENT'];
        $l = stripos($text,"(")+1;
        $r = stripos($text,'; ');
        $r = $r - $l;
        $m =M();
        $ret = $m->query("select version()");
        $ret = $ret[0];
        $system['mysqledition'] = $ret['version()'];
        $system['edition'] = substr($text,$l,$r);
        $system['phpediton'] = phpversion();
        $this->assign('system', $system);
        $this->display("index");
//        echo php_uname();
////        echo "dsdsssd";
    }
}